export const state = () => ({
    drafts: []
})
export const mutations = {
    read_in(state, drafts_list) {
        // 从数组最前面添加内容
        state.drafts.unshift(drafts_list)
        console.log(drafts_list);
    },
    behind(state, drafts_list) {
        state.drafts.pop(drafts_list)
    },
    delete(state, drafts_list) {
        state.drafts.splice(drafts_list, 1)
    }
}